<script setup lang="ts">
defineProps<{
  title: string
  tips: string
}>()
</script>

<template>
  <div class="home-panel">
    <div class="header">
      <h4>{{ title }}</h4>
      <XtxMore to="/" />
    </div>
    <!-- 商品列表 -->
    <div class="goods-list">
      <div class="goods-none">
        <img src="@/assets/images/none.png" />
        <p>{{ tips }}</p>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.home-panel {
  margin-top: 20px;
  padding: 0 20px;
  // height: 400px;
  background-color: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  height: 66px;
  border-bottom: 1px solid #f5f5f5;

  h4 {
    font-size: 22px;
    font-weight: normal;
  }
}

.goods-list {
  .goods-none {
    padding: 50px 0px;
    text-align: center;

    p {
      color: #999;
    }
  }
}
</style>
